package com.megalith.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Description TODO
 * @Author lfp
 * @Date 2022/7/16
 * @Version 1.0
 */
@Data
@ApiModel(value = "MembershipDTO",description = "用户组关联DTO")
public class MembershipDTO {
    @ApiModelProperty(value = "用户id",required = true)
    @NotBlank(message = "userId不能为空")
    private String userId;

    @ApiModelProperty(value = "用户组id",required = true)
    @NotBlank(message = "groupId不能为空")
    private String groupId;
}
